﻿using FreeSql.DataAnnotations;
using ManaSky.DBCore.Entity;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace ManaSky.Entity.Manage
{
    /// <summary>
    /// 接口定义表
    /// </summary>
    [Description("接口定义表"), Table(Name = "sys_api")]
    public class sys_api : VersionEntity
    {
        /// <summary>
        /// 所属系统ID
        /// </summary>
        [Column(Name = "product_id")]
        public int ProductId { get; set; } = 0;
        /// <summary>
        /// 上级API ID
        /// </summary>
        [Column(Name = "parent_api_id")]
        public int ParentApiId { get; set; } = 0;
        /// <summary>
        /// 串联路径
        /// </summary>
        [Column(Name = "cascade_path")]
        public string CascadePath { get; set; } = string.Empty;
        /// <summary>
        /// 描述
        /// </summary>
        [Column(Name = "description")]
        public string Description { get; set; } = string.Empty;
        /// <summary>
        /// 类型 0 目录，10 API
        /// </summary>
        [Column(Name = "type")]
        public int Type { get; set; } = 0;
        /// <summary>
        /// 名称
        /// </summary>
        [Column(Name = "name")]
        public string Name { get; set; } = string.Empty;
        /// <summary>
        /// 请求方法 post get 等
        /// </summary>
        [Column(Name = "method")]
        public string Method { get; set; } = string.Empty;
        /// <summary>
        /// 请求路由
        /// </summary>
        [Column(Name = "uri")]
        public string Uri { get; set; } = string.Empty;
    }
}
